the size of a word, or, for 64 bit objects, the size of a doubleword.
_vvvv_aaaa_llll_llll_oooo_cccc(_s_i_z_e) is equivalent to _mmmm_eeee_mmmm_aaaa_llll_iiii_gggg_nnnn(_ssss_yyyy_ssss_cccc_oooo_nnnn_ffff(______SSSS_CCCC______PPPP_AAAA_GGGG_EEEE_SSSS_IIII_ZZZZ_EEEE),_s_i_z_e). For
more information see _ssss_yyyy_ssss_cccc_oooo_nnnn_ffff(3c).
Each of the allocation routines returns a pointer to space suitably
aligned (after possible pointer coercion) for storage of any type of
object.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
brk(2), sysconf(3c), malloc(3X)
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
mmmmaaaalllllllloooocccc, rrrreeeeaaaalllllllloooocccc,,,, ccccaaaalllllllloooocccc,,,, mmmmeeeemmmmaaaalllliiiiggggnnnn,,,, and vvvvaaaalllllllloooocccc return a NULL pointer if
there is no available memory or if the arena has been detectably
corrupted by storing outside the bounds of a block. When this happens
the block pointed to by _p_t_r may be destroyed.
NNNNOOOOTTTTEEEESSSS
How an application manages its heap can greatly affect the performance of
these routines. For most applications, this set will perform well. For
some applications, the more flexible _mmmm_aaaa_llll_llll_oooo_cccc(3X) package might be more
appropriate.
A SEGV or Bus Error inside the mmmmaaaalllllllloooocccc routine is almost certainly caused
by a previous memory overwrite by the user. This is a delayed error which
is caused by a previous overwrite of unallocated memory and is not a bug
in mmmmaaaalllllllloooocccc itself.
When called with _s_i_z_e of zero, mmmmaaaalllllllloooocccc returns a valid pointer to a block
of zero bytes. Storage into a block of length zero will corrupt the
mmmmaaaalllllllloooocccc arena and may have serious consequences.
Products, libraries, or commands that provide their own mmmmaaaalllllllloooocccc package
must provide all of the entry points listed above, or the normal _llll_iiii_bbbb_cccc
_mmmm_aaaa_llll_llll_oooo_cccc entry point for the unimplemented routine(s) may be called
instead, leading to corrupted heaps, since it is unlikely that the
internal details of the heap management will be the same. If the mmmmaaaalllllllloooocccc
package is also intended to replace mmmmaaaalllllllloooocccc(3X), it must also provide the